package com.lynn.baseproject.http

import android.app.Application
import android.content.Context
import androidx.activity.contextaware.ContextAware
import com.lynn.lib_base.http.listener.IGetAppInfo
import com.orhanobut.logger.BuildConfig

/**
 * @description:
 * @author: bailing
 * @datetime: 2025/5/28 13:49
 **/
class CustomGetAppInfo(val app: Application) : IGetAppInfo {
    override fun getAppVersionName(): String {
        return BuildConfig.VERSION_NAME
    }

    override fun getAppVersionCode(): String {
        TODO("Not yet implemented")
    }

    override fun isDebug(): Boolean {
        return false
    }

    override fun getApplicationContext(): Context {
        return app.applicationContext
    }
}